package com.yifeng.repo.micro.service.server.mps;

import feign.Param;
import feign.RequestLine;
import next.fire.mps.api.TinyAppCardService;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.Map;

@FeignClient(name = "mpsTinyAppCardServiceClient", url = "${yfcloud.micro.service.mps.url}", path = "/fire-mps")
public interface TinyAppCardServiceClient extends TinyAppCardService {

    @Override
    @RequestLine("POST /TinyAppCardService/activate")
    Map activate(@Param("merchantId") String merchantId, @Param("mpAppId") String mpAppId, @Param("openId") String openId,
                 @Param("cardTemplateId") String cardTemplateId, @Param("activateTicket") String activateTicket);

    @Override
    @RequestLine("POST /TinyAppCardService/decryptCode")
    String decryptCode(@Param("merchantId") String merchantId, @Param("mpAppId") String mpAppId, @Param("encryptCode") String encryptCode);
}
